/**
 * This class provides the modal Ext.Window support for all Authentication forms.
 * It's layout is structured to center any Authentication dialog within it's center,
 * and provides a backGround image during such operations.
 */
Ext.define('Jason.view.protal.authentication.LockingWindow', {
    extend: 'Ext.window.Window',
    xtype: 'lockingwindow',

    cls: 'auth-locked-window-2',
    header: false, //不显示标题栏
    closable: false,
    resizable: false,
    autoShow: true,
    titleAlign: 'center',
    maximized: true,
    modal: true,
    frameHeader: false,
    layout: {
        type: 'vbox',
        align: 'right',
        pack: 'center'
    },
    listeners: {
        render: function (win) {
            session.set('login_background_cls', 'auth-locked-window');
            //            Ext.each(Ext.query('#signin-background-img>img'),function(item){
            //                item.onclick=function(){
            //                    Ext.get(win.getEl().dom).removeCls(session.get('login_background_cls'));
            //                    session.set('login_background_cls',item.getAttribute('code'));
            //                    Ext.get(win.getEl().dom).addCls(item.getAttribute('code'))
            //                }
            //            })
        }
    }//,
    //    html:'<div id="signin-background-img">'+
    //           '<div>页面背景</div>'+
    //           '<img code="auth-locked-window" src="resources/images/lock-screen-background.jpg">'+
    //           '<img code="auth-locked-window-4" src="resources/images/lock-screen-background-4.jpg">'+
    //           '<img code="auth-locked-window-5" src="resources/images/lock-screen-background-5.jpg">'+
    //           '<img code="auth-locked-window-6" src="resources/images/lock-screen-background-6.jpg">'+
    //           '<img code="auth-locked-window-7" src="resources/images/lock-screen-background-7.jpg">'+
    //         '</div>'
});
